import BaseService from './_BaseService'
import axios from 'axios'
import config from '../config'

class TaskTypeService extends BaseService {
  root = window.apiPath + '/cruises'

  searchAll (query) {
    return super.search(query).then(res => {
      return res
    })
  }

  search (page) {
    return axios.get(config.SERVER_URL + window.apiPath + `/cruises-ps?page=${page}&size=${config.PAGE_SIZE}`, {responseType: 'json'})
      .then(res => res)
  }
}

export default new TaskTypeService()
